<form class="form-horizontal" id="form-edit-admin">
    
	<div class="form-group">
        <label class="control-label col-xs-2">原密码：</label>
        <div class="col-xs-9">
            <input type="password" class="form-control" placeholder="输入原登录密码" name="oldpassword" value="" required>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-2">新密码：</label>
        <div class="col-xs-9">
            <input type="password" class="form-control" placeholder="输入新登录密码" name="newpassword" value="" required>
        </div>
    </div>
	 <div class="form-group">
        <label class="control-label col-xs-2">确认密码：</label>
        <div class="col-xs-9">
            <input type="password" class="form-control" placeholder="输入确认登录密码" name="conpassword" value="" required>
        </div>
    </div>

    <div class="form-group">
        <div class="col-xs-offset-2 col-xs-3">
            <button type="submit" class="btn btn-success">确认修改</button>
        </div>
    </div>
</form>

<!-- Select2 -->
<script src="__PUBLIC__/vendors/select2/js/select2.min.js"></script>
<script src="__PUBLIC__/vendors/jquery.validation/jquery.validate.min.js"></script>
<script src="__PUBLIC__/vendors/jquery.validation/additional-methods.js"></script>
<script src="__PUBLIC__/vendors/jquery.validation/messages_zh.min.js"></script>
<script type="application/javascript">
    $(function () {
        
        $("#form-edit-admin").validate({
            messages:
                {
                    
                    oldpassword: "必须填写原登录密码",
					newpassword: "必须填写新登录密码",
					conpassword: "必须填写确认登录密码"

                },
            submitHandler: function () {
                ajaxSubmit('form-edit-admin', true);
            }
        })
    })
</script>